-
-
Notifications
You must be signed in to change notification settings - Fork 348
Add Embeddings to Study View #5224
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
inodb
wants to merge
24
commits into
cBioPortal:master
Choose a base branch
from
inodb:add-umap
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
inodb
commented
Jul 7, 2025
ee206ad to
d3f5670
Compare
Add a new Embeddingstab to the Study View, which leverages deck.gl. The implementation uses a randomly generated scatter plot that represent UMAP and PCA projections. The dots can be colored by clinical attributes or tumor types, similar to the plots tab. The plot also allows for selection.
Make legend more interactive. Add embedding to more studies (anything that has a sample in the embedding).
- Add unit tests for EmbeddingPlotUtils (preComputeClinicalDataMaps, lookup maps, embedding transformations) - Add E2E screenshot tests for cancer type, gene mutation, and clinical attribute coloring - Add E2E interaction tests for legend toggles, filtering, and URL parameters - Add data-test attributes to embeddings visualization and legend components 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
Add missing required properties (studyIds, description, totalPatients, sampleSize) to PatientEmbeddingData test objects. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
Add &expert URL parameter to toggle QC section visibility in legend. Filter out "not in cohort" samples in normal mode. Include "Unselected" category in legend with proper gray color. Fix "Show All/Hide All" to exclude QC categories and show message when all categories hidden. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
Creates a shared `rawPlotData` computed property that is called once and cached by MobX, eliminating redundant calls to `makeEmbeddingScatterPlotData` across the three computed properties (plotData, categoryCounts, categoryColors). Performance impact: - Before: 3 calls × ~30-40ms = ~90-120ms per render - After: 1 call × ~30-40ms = ~30-40ms per render - Net savings: ~60-80ms per render (50-67% reduction) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
Changes axis labels from 'Boehm 20251' and 'Boehm 20252' to 'Boehm 2025 1' and 'Boehm 2025 2' by adding a space between the embedding label and dimension number. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
Replaces the single boehm_2025_umap_embedding.json with three new embedding files: - boehm_2025_umap_he.json (H&E embeddings) - boehm_2025_umap_genomic.json (Genomic embeddings) - boehm_2025_umap_genomic_he.json (Combined Genomic and H&E embeddings) The dropdown now displays three options using titles from the JSON files: - "Boehm et al. (2025) - H&E" - "Boehm et al. (2025) - Genomic" - "Boehm et al. (2025) - Genomic and H&E" Default selection is set to the H&E embedding. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
Widens the embedding selection dropdown to accommodate the longer embedding names like 'Boehm et al. (2025) - Genomic and H&E' without truncation. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
Adds three new embedding JSON files for different embedding types: - boehm_2025_umap_he.json (H&E embeddings) - boehm_2025_umap_genomic.json (Genomic embeddings) - boehm_2025_umap_genomic_he.json (Genomic and H&E embeddings) Removes the old boehm_2025_umap_embedding.json file which is no longer referenced in the code. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
Updates the import from the removed boehm_2025_umap_embedding.json to the new boehm_2025_umap_he.json file. This fixes the module resolution error while maintaining the same functionality for checking embedding support. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
Removes the Beta! label from the Plots tab and adds it to the Embeddings tab to indicate that Embeddings is the beta feature. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
We've received various requests to show embeddings (e.g. UMAP/PCA) on the Study View. This implements a prototype using deckgl which can support 1M points:
See preview

Features
TODO
Get a realistic embedding (currently bogus for 24K cases)Fix driver coloring, currently everything VUS (copy plots tab style)